var t = getApp();

Component({
    properties: {
        goodsInfo: {
            type: null
        }
    },
    data: {
        show: !1,
        openVip: 2
    },
    lifetimes: {
        attached: function(t) {
            var e = wx.getStorageSync("langIndex");
            this.setData({
                language: e.en
            }), this.init();
        }
    },
    methods: {
        init: function() {
            this.data.goodsInfo.member_discount && (t._isTextEmpty(this.data.goodsInfo.member_discount.discount) ? this.setData({
                openVip: 1
            }) : this.setData({
                openVip: this.data.goodsInfo.member_discount.discount
            }));
        },
        gotoMemberGradeList: function(t) {
            "1" == t.currentTarget.dataset.o && wx.navigateTo({
                url: "/packageB/member/MemberGradeList/MemberGradeList"
            });
        }
    }
});